<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("utf-8");
	String cp = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>게 시 판</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<link rel="stylesheet" href="<%=cp%>/info/css/list.css" type="text/css"/>

<script type="text/javascript" src="<%=cp%>/board/js/util.js"></script>
<script type="text/javascript">
	function searchData(){
		
		var f = document.searchForm;
		f.action = "<%=cp%>/info/s_list.action";
		f.submit();
		
	}
</script>
</head>

<body>

	<div id="container">
		<div id="subNavigation">
			<h2><img src="<%=cp%>/info/image/center.gif" alt="고객센터" /></h2>
			<ul class="leftMenu">
                <li><a href='<%=cp%>/info/list.action'><img src='<%=cp%>/info/image/sub1.gif' alt='공지사항' /></a></li>
                <li><a href='<%=cp%>/info/qna.action'><img src='<%=cp%>/info/image/sub2.gif' class='imgover'  alt='자주 묻는 질문' /></a></li>
                <li><a href='<%=cp%>/info/s_created.action'><img src='<%=cp%>/info/image/sub5.gif'  alt='제안 / 불편사항' /></a></li>    
                <li><a href='<%=cp%>/info/sub3.action'><img src='<%=cp%>/info/image/sub3.gif'  alt='국외여행 약관' /></a></li>
                <li><a href='<%=cp%>/info/sub4.action'><img src='<%=cp%>/info/image/sub4.gif' class='imgover'  alt='국내여행 약관' /></a></li>
  				<li><a href='<%=cp%>/info/sub7.action'><img src='<%=cp%>/info/image/sub7.gif' class='imgover'  alt='여행상품권 안내' /></a></li>
 			</ul>
		</div>

		<div id="contents">
			<div class="titleArea">
				<h3><img src="<%=cp%>/info/image/suggest.gif" alt="공지사항" /><span class="visualImg"><img src="<%=cp%>/info/image/image4.gif"  alt="비주얼이미지" /></span></h3>
			</div>
 
			<table cellpadding="0" cellspacing="0" class="tbListType1" summary="여행후기" width="100%">
                
				<caption></caption>
				<colgroup>
					<col width="10%" />
					<col width="*" />
					<col width="13%" />
				</colgroup>
				<thead>
					<tr>
						<th><img src="<%=cp%>/info/image/number.gif" alt="번호" /></th>
						<th><img src="<%=cp%>/info/image/subject.gif" alt="제목" /></th>
						<th><img src="<%=cp%>/info/image/created.gif" alt="작성일" /></th>
					</tr>
				</thead>
				<tbody>
                    <c:forEach var="dto" items="${lists}">
					<tr>
						<td class="num">${dto.num}</td>
						<td class="subject"><a href="${urlArticle}&num=${dto.num}">${dto.subject}</a>
                        </td>
						<td class="created">${dto.created}</td>
					</tr>
					</c:forEach>                        
				</tbody>
			</table>
			
			<!-- Paging -->
			<div class="pageNotice">
				<p class="page"><b>${pageNum}</b> 페이지 / 총 <b>${totalPage}</b> 페이지</p>
                <div class="paging">
                     <p>
				<c:if test="${totalDataCount != 0}">
					${pageIndexList}
				</c:if>
				<c:if test="${totalDataCount == 0}">
					등록된 게시물이 없습니다.
				</c:if>
			</p>
			</div>
            	<div class="btnAreaR"><a href="javascript:location.href='<%=cp%>/admin/list.action'"><img src="<%=cp%>/info/image/list.gif""  alt="돌아가기" /></a>
            </div>
			</div>
			<!-- Paging //-->
 
			<div class="searchBox">
				<form name="searchForm" method="post" action="">
				<select class="type_select2" id="SearchType" name="searchKey">
					<option value="subject">제목</option>
					<option value="content">내용</option>
				</select>
				<input type="text" class="type_text2" id="SearchValue" name="searchValue"/>
				<a href="#"><img src="<%=cp%>/info/image/search.gif" alt="검색" onclick="searchData();" /></a>
				</form>
			</div>
		</div>
	</div>

</body>

</html>